import views from './views'
import api from './api'
import Koa from 'koa'
export default function(app:Koa) {
  // routes
  app.use(views.routes()).use(views.allowedMethods())
  app.use(api.routes()).use(api.allowedMethods())
}